import {
	HTTP
} from '../utils/http.js';

class CouponDetailModel extends HTTP {
	
	getCouponInstanceDetail(openId, couponInstanceCode) {
		return this.request({
			url: 'queryCouponInstanceDetail',
			data: {
				"openId": openId,
				"couponInstanceCode": couponInstanceCode
			},
			method: 'POST'
		})
	}
	
	getRefreshCouponCode(couponInstanceCode) {
		return this.request({
			url: 'refreshCouponCode',
			data: {
				"couponInstanceCode": couponInstanceCode
			},
			method: 'POST'
		})
	}
}

module.exports = {
     CouponDetailModel
};